import {
	post,
	get,
	put
} from '@/utils/request.js'

/**
 * 预提现
 */
export const preWithdrawalApi = (params) => {
	return get('/withdrawal/pre', params)
}

/**
 * 申请提现
 */
export const withdrawalApplyApi = (data) => {
	return post('/withdrawal/apply', data)
}

/**
 * 提现记录
 */
export const withdrawalRecordApi = (data) => {
	return get('/withdrawal/page', data)
}

/**
 * 佣金资金流水
 */
export const commissionBillListApi = (data) => {
	return get('/commissionBill/list', data)
}

/**
 * 返回已签约的银行卡列表
 */
export const agentEnterApplyListBankApi = (data) => {
	return get('/agentEnterApply/listBank', data)
}

/**
 * 获取经纪人入驻状态
 */
export const agentEnterStateApi = (data) => {
	return get('/agentEnterApply/getEnterInfoState', data)
}

/**
 * 经纪人入驻，绑定银行卡，并做签约，返回签约地址
 */
export const agentEnterApplyApi = (data) => {
	return post('/agentEnterApply/enterApply', data)
}
/**
 * 经纪人入驻，更換銀行卡，獲取手機短信
 */
export const sendSms = (data) => {
	return post('/sms/send', data)
}
// 经纪人入驻相关接口
export const updateBankInfo = (data) => {
	return put('/agentEnterApply/updateBankInfo', data)
}

// 经纪人开户
export const bindHf = (data) => {
	return post('/agentEnterApply/bindHf', data)
}
